# name = "123213{}"
# name = name.format("djash")
# print(name)
import re

url = "http://tiebapic.baidu.com/forum/w%3D580/sign=5ef85b1e3dec54e741ec1a1689399bfd/673e6709c93d70cf44007c2dbedcd100baa12b1c.jpg?dashkhdsakjhd"

print(re.search("(.{10}.jpg)", url).group(0))